home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib05.dsk
/
SCREEN WRITING.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
665b
|
32 lines
1 DIM X(100)
10 FOR J = 1 TO 6
20 INPUT B$(J)
25 LR = LR + LEN(B$(J))
30 NEXT J
35 PRINT "SETTING UP"
40 H = 5
50 FOR J = 1 TO 6
55 H1 = H
60 FOR I = 1 TO LEN(B$(J))
70 VTAB J +1: HTAB H1
80 CU = PEEK(40) +256 * PEEK(41) + PEEK(36)
90 X(P1) = CU
100 P1 = P1 +1:H1 = H1 +1
110 NEXT I
120 NEXT J
200 PRINT "PRESS ANY KEY TO CONTINUE"
210 GET Z$
220 HOME
230 P1 = 0
240 Z = PEEK(X(P1))
250 IF Z > = 192 THEN Z = Z +128
260 IF Z <192 AND Z > = 160 THEN Z = Z -64
270 POKE X(P1),Z
280 Z = PEEK( -16384)
290 IF Z <128 THEN GOTO 280
300 POKE -16368,0
310 POKE X(P1),Z
320 P1 = P1 +1
330 IF P1 > = LR THEN GOTO 1000
340 GOTO 240
1000 END